package com.visizen.wisdomclass.server.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WcClassSchedualExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WcClassSchedualExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIDIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIDIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIDEqualTo(Long value) {
            addCriterion("ID =", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDNotEqualTo(Long value) {
            addCriterion("ID <>", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDGreaterThan(Long value) {
            addCriterion("ID >", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDLessThan(Long value) {
            addCriterion("ID <", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDIn(List<Long> values) {
            addCriterion("ID in", values, "ID");
            return (Criteria) this;
        }

        public Criteria andIDNotIn(List<Long> values) {
            addCriterion("ID not in", values, "ID");
            return (Criteria) this;
        }

        public Criteria andIDBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "ID");
            return (Criteria) this;
        }

        public Criteria andIDNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDIsNull() {
            addCriterion("CLASS_ID is null");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDIsNotNull() {
            addCriterion("CLASS_ID is not null");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDEqualTo(Long value) {
            addCriterion("CLASS_ID =", value, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDNotEqualTo(Long value) {
            addCriterion("CLASS_ID <>", value, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDGreaterThan(Long value) {
            addCriterion("CLASS_ID >", value, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDGreaterThanOrEqualTo(Long value) {
            addCriterion("CLASS_ID >=", value, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDLessThan(Long value) {
            addCriterion("CLASS_ID <", value, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDLessThanOrEqualTo(Long value) {
            addCriterion("CLASS_ID <=", value, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDIn(List<Long> values) {
            addCriterion("CLASS_ID in", values, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDNotIn(List<Long> values) {
            addCriterion("CLASS_ID not in", values, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDBetween(Long value1, Long value2) {
            addCriterion("CLASS_ID between", value1, value2, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDNotBetween(Long value1, Long value2) {
            addCriterion("CLASS_ID not between", value1, value2, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andTITILEIsNull() {
            addCriterion("TITILE is null");
            return (Criteria) this;
        }

        public Criteria andTITILEIsNotNull() {
            addCriterion("TITILE is not null");
            return (Criteria) this;
        }

        public Criteria andTITILEEqualTo(String value) {
            addCriterion("TITILE =", value, "TITILE");
            return (Criteria) this;
        }

        public Criteria andTITILENotEqualTo(String value) {
            addCriterion("TITILE <>", value, "TITILE");
            return (Criteria) this;
        }

        public Criteria andTITILEGreaterThan(String value) {
            addCriterion("TITILE >", value, "TITILE");
            return (Criteria) this;
        }

        public Criteria andTITILEGreaterThanOrEqualTo(String value) {
            addCriterion("TITILE >=", value, "TITILE");
            return (Criteria) this;
        }

        public Criteria andTITILELessThan(String value) {
            addCriterion("TITILE <", value, "TITILE");
            return (Criteria) this;
        }

        public Criteria andTITILELessThanOrEqualTo(String value) {
            addCriterion("TITILE <=", value, "TITILE");
            return (Criteria) this;
        }

        public Criteria andTITILELike(String value) {
            addCriterion("TITILE like", value, "TITILE");
            return (Criteria) this;
        }

        public Criteria andTITILENotLike(String value) {
            addCriterion("TITILE not like", value, "TITILE");
            return (Criteria) this;
        }

        public Criteria andTITILEIn(List<String> values) {
            addCriterion("TITILE in", values, "TITILE");
            return (Criteria) this;
        }

        public Criteria andTITILENotIn(List<String> values) {
            addCriterion("TITILE not in", values, "TITILE");
            return (Criteria) this;
        }

        public Criteria andTITILEBetween(String value1, String value2) {
            addCriterion("TITILE between", value1, value2, "TITILE");
            return (Criteria) this;
        }

        public Criteria andTITILENotBetween(String value1, String value2) {
            addCriterion("TITILE not between", value1, value2, "TITILE");
            return (Criteria) this;
        }

        public Criteria andCONTENTIsNull() {
            addCriterion("CONTENT is null");
            return (Criteria) this;
        }

        public Criteria andCONTENTIsNotNull() {
            addCriterion("CONTENT is not null");
            return (Criteria) this;
        }

        public Criteria andCONTENTEqualTo(String value) {
            addCriterion("CONTENT =", value, "CONTENT");
            return (Criteria) this;
        }

        public Criteria andCONTENTNotEqualTo(String value) {
            addCriterion("CONTENT <>", value, "CONTENT");
            return (Criteria) this;
        }

        public Criteria andCONTENTGreaterThan(String value) {
            addCriterion("CONTENT >", value, "CONTENT");
            return (Criteria) this;
        }

        public Criteria andCONTENTGreaterThanOrEqualTo(String value) {
            addCriterion("CONTENT >=", value, "CONTENT");
            return (Criteria) this;
        }

        public Criteria andCONTENTLessThan(String value) {
            addCriterion("CONTENT <", value, "CONTENT");
            return (Criteria) this;
        }

        public Criteria andCONTENTLessThanOrEqualTo(String value) {
            addCriterion("CONTENT <=", value, "CONTENT");
            return (Criteria) this;
        }

        public Criteria andCONTENTLike(String value) {
            addCriterion("CONTENT like", value, "CONTENT");
            return (Criteria) this;
        }

        public Criteria andCONTENTNotLike(String value) {
            addCriterion("CONTENT not like", value, "CONTENT");
            return (Criteria) this;
        }

        public Criteria andCONTENTIn(List<String> values) {
            addCriterion("CONTENT in", values, "CONTENT");
            return (Criteria) this;
        }

        public Criteria andCONTENTNotIn(List<String> values) {
            addCriterion("CONTENT not in", values, "CONTENT");
            return (Criteria) this;
        }

        public Criteria andCONTENTBetween(String value1, String value2) {
            addCriterion("CONTENT between", value1, value2, "CONTENT");
            return (Criteria) this;
        }

        public Criteria andCONTENTNotBetween(String value1, String value2) {
            addCriterion("CONTENT not between", value1, value2, "CONTENT");
            return (Criteria) this;
        }

        public Criteria andARRA_TIMEIsNull() {
            addCriterion("ARRA_TIME is null");
            return (Criteria) this;
        }

        public Criteria andARRA_TIMEIsNotNull() {
            addCriterion("ARRA_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andARRA_TIMEEqualTo(Date value) {
            addCriterion("ARRA_TIME =", value, "ARRA_TIME");
            return (Criteria) this;
        }

        public Criteria andARRA_TIMENotEqualTo(Date value) {
            addCriterion("ARRA_TIME <>", value, "ARRA_TIME");
            return (Criteria) this;
        }

        public Criteria andARRA_TIMEGreaterThan(Date value) {
            addCriterion("ARRA_TIME >", value, "ARRA_TIME");
            return (Criteria) this;
        }

        public Criteria andARRA_TIMEGreaterThanOrEqualTo(Date value) {
            addCriterion("ARRA_TIME >=", value, "ARRA_TIME");
            return (Criteria) this;
        }

        public Criteria andARRA_TIMELessThan(Date value) {
            addCriterion("ARRA_TIME <", value, "ARRA_TIME");
            return (Criteria) this;
        }

        public Criteria andARRA_TIMELessThanOrEqualTo(Date value) {
            addCriterion("ARRA_TIME <=", value, "ARRA_TIME");
            return (Criteria) this;
        }

        public Criteria andARRA_TIMEIn(List<Date> values) {
            addCriterion("ARRA_TIME in", values, "ARRA_TIME");
            return (Criteria) this;
        }

        public Criteria andARRA_TIMENotIn(List<Date> values) {
            addCriterion("ARRA_TIME not in", values, "ARRA_TIME");
            return (Criteria) this;
        }

        public Criteria andARRA_TIMEBetween(Date value1, Date value2) {
            addCriterion("ARRA_TIME between", value1, value2, "ARRA_TIME");
            return (Criteria) this;
        }

        public Criteria andARRA_TIMENotBetween(Date value1, Date value2) {
            addCriterion("ARRA_TIME not between", value1, value2, "ARRA_TIME");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}